package com.ljx.blog.article.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ljx.blog.article.typehandler.ArticleTypeHandler;
import com.ljx.blog.article.typehandler.custom.TagList;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @Author: LiJunXi
 * @Description:
 * @Date: 2024-10-12  21:24
 */
@Data
@TableName("tb_article")
public class Article {

    private Long id;

    private Long uid;

    private String title;

    private String content;

    private Integer viewsNum;

    private Integer likeNum;

    private Integer collectNum;

    private Integer commentNum;

    private Long categoryId;

    @TableField(typeHandler = ArticleTypeHandler.class)
    private TagList tags;

    private Integer isTop;

    private String source;

    private Integer type;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private Integer status;

    private Integer ver;


}
